package org.example.what_mall.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Schema(description = "回复")
@TableName("replies")
@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class Reply {
    @Schema(description = "回复id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @Schema(description = "留言id")
    @TableField(value = "messageId")
    private Integer messageId;

    @Schema(description = "用户id")
    @TableField(value = "userId")
    private Integer userId;

    @Schema(description = "回复内容")
    @TableField(value = "content")
    private String content;
}
